Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
librsvg
Library to render SVG files using cairo.

librsvg, (occasionally stylized as LibRsvg) is a free software SVG rendering library written as part of the GNOME project, intended to be lightweight and portable. The Linux command-line program rsvg-convert uses the library to turn SVG files into raster images.

Related Image Collections Add Image
We don't have any YouTube videos related to librsvg yet.
We don't have any PDF documents related to librsvg yet.
We don't have any Books related to librsvg yet.
We don't have any archived web articles related to librsvg yet.

Backends

librsvg uses two other libraries to perform tasks from reading the file to rendering to the screen:

  • libxml is used to parse the XML representation of an SVG file into a form that can be accessed quickly by the library.
  • cairo is used to render the information obtained by libxml to a block of memory.

Since v2.41.0 many parts have been rewritten in Rust.34

Adoption

librsvg is developed for the GNOME desktop environment and as such is used by GNOME Files and GNOME Loupe but is also intended to be used in other software applications. As a notable example, wikis hosted by Wikimedia use librsvg to render SVG images.5 It was once picked for these web applications because it was decidedly "fast but not very accurate", according to MediaWiki.6 As of March 2025, Wikipedia and Wikimedia Commons use a version of librsvg 2.54 to render SVG as PNG.78

Upon switching to the cairo vector rendering engine in 2005,910 librsvg became more accurate and more visually pleasing. Since 2012 an independent developer published Win32 console ports rsvg-convert.exe, as of December 2017 version 2.40.20.11 The rsvg-view manual page is also available online.12

Version history

VersionDateComments
1.0.02001-05-08
1.1.62002-03-07
2.0.02002-06-19
2.1.02002-09-27
2.2.02003-01-20
2.3.02003-04-08
2.4.02003-09-08
2.5.02003-12-07
2.6.02004-03-08
2.7.02004-03-10
2.8.02004-09-03
2.9.02005-01-25
2.11.02005-08-25
2.12.02005-09-15
2.13.02005-10-21
2.14.02006-02-25
2.15.02006-05-11
2.16.02006-08-31
2.18.02007-07-24
2.20.02008-01-19
2.22.02008-02-21
2.26.02009-03-16
2.31.02010-07-02
2.32.02010-09-27
2.34.02011-04-03
2.35.02011-11-14
2.36.02012-03-26
2.37.02013-01-10
2.39.02013-08-16
2.40.02013-10-14
2.40.162016-06-09
2.40.172017-04-07
2.40.202017-12-16
2.40.212020-02-262.40.21: Last version without Rust
2.41.02017-01-04
2.42.02018-01-09
2.43.02018-06-12
2.44.02018-08-23
2.44.102018-12-11
2.45.02018-11-17
2.45.62019-05-142:45.6: First version only on Rust. Requires Cairo 1.16.0 or later and Rust 1.30.0 or later13
2.45.922019-09-02
2.46.02019-09-09
2.47.02019-10-29
2.48.02020-03-07
2.48.92020-11-05
2.49.02020-05-29
2.49.52020-09-04
2.50.02020-09-10
2.50.32021-01-282.50.3: version used on Wikimedia Commons as of May 202314
2.51.02021-02-03
2.51.42021-07-09
2.52.02021-09-15
2.53.02022-01-18
2.53.12022-02-12
2.53.22022-03-12
2.54.02022-03-162.54.1 2022-04-23; 2.54.2 2022-05-13; 2.54.3 2022-05-14; 2.54.4 2022-06-10; 2.54.5 2022-08-26. 2.54.7: Version used on Wikimedia Commons as of March 2025
2.55.02022-08-03
2.55.12022-09-05
2.55.22023-03-16
2.57.902024-01-25First version to use Rust crates for all image loading operations, eliminating gdk-pixbuf dependency.15
2.59.02024-09-12
  • Free and open-source software portal

References

  1. "Projects/LibRsvg - GNOME Wiki!". https://wiki.gnome.org/Projects/LibRsvg

  2. "librsvg is a library to render SVG files using cairo". librsvg. GNOME. Retrieved May 10, 2012. https://wiki.gnome.org/Projects/LibRsvg

  3. "Librsvg 2.41.0 is released". mail.gnome.org. 2017-01-03. Retrieved 2018-11-20. https://mail.gnome.org/archives/desktop-devel-list/2017-January/msg00001.html

  4. Quintero, Federico Mena (2017). Replacing C library code with Rust: What I learned with librsvg (PDF). Manchester, UK: GUADEC. Archived from the original (PDF) on 2017-09-28. Retrieved 2018-11-20. https://web.archive.org/web/20170928062853/https://people.gnome.org/~federico/blog/docs/fmq-porting-c-to-rust.pdf

  5. Lucideer (April 27, 2009). "Manual:Image Administration - MediaWiki". MediaWiki. Retrieved April 6, 2011. https://www.mediawiki.org/wiki/Manual:Image_Administration#SVG

  6. "SVG benchmarks - MediaWiki". MediaWiki. Retrieved April 6, 2011. https://www.mediawiki.org/wiki/SVG_benchmarks

  7. "Update librsvg to version ≥ 2.54 (2.54.7)". Wikimedia Phabricator. Retrieved 2025-03-09. https://phabricator.wikimedia.org/T381674#10389132

  8. "librsvg bugs". Wikimedia Commons. Retrieved 2023-11-22. https://commons.wikimedia.org/wiki/Librsvg_bugs

  9. Worth, Carl (2 September 2005). "svg shootout". gmane.comp.gnome.lib.librsvg.devel. Retrieved 29 November 2014. the librsvg maintainers … have now added cairo support to librsvg. Many thanks are due to Caleb Moore and Dom Lachowicz for this work. The source can be compiled --with-cairo and it builds separate librsvg-2-cairo.so and librsvg-2-base.so libraries http://article.gmane.org/gmane.comp.lib.cairo/5035

  10. Moore, Caleb (3 November 2005). "using librsvg cairo". gmane.comp.gnome.lib.librsvg.devel. Retrieved 29 November 2014. Librsvg-2.13 cannot link to libart since that backend was majorly broken when we released 2.13 and thus must link to cairo. http://article.gmane.org/gmane.comp.gnome.lib.librsvg.devel/290

  11. TumaGonx Zakkum (2012-06-10). "RSVG-Convert SVG image conversion tool". Open Source Software and Windows 32-bit. Retrieved 2017-01-31. http://opensourcepack.blogspot.com/2012/06/rsvg-convert-svg-image-conversion-tool.html

  12. Paul Brossier; Dom Lachowicz; Alex Larsson; et al. "rsvg-view" (man page). Archived from the original on 2014-12-28. Retrieved 2014-12-28. https://web.archive.org/web/20141228181411/http://ait08.us.es/cgi-bin/man/man2html?rsvg-view+1

  13. https://download.gnome.org/sources/librsvg/2.45/librsvg-2.45.6.news [bare URL] https://download.gnome.org/sources/librsvg/2.45/librsvg-2.45.6.news

  14. "⚓ T265549 Update librsvg to version > 2.44.10 (2.50.3)". phabricator.wikimedia.org. Retrieved 2024-06-29. https://phabricator.wikimedia.org/T265549#9867973

  15. https://download.gnome.org/sources/librsvg/2.57/librsvg-2.57.90.news [bare URL] https://download.gnome.org/sources/librsvg/2.57/librsvg-2.57.90.news